package com.fastbee.iot.domain;

import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;

/**
 * 设备对象 iot_device
 *
 * @author kerwincui
 * @date 2021-12-16
 */
@Data
public class DeviceEl
{

    @ApiModelProperty("设备编号")
    private String serialNumber;

    @ApiModelProperty("电压")
    private BigDecimal voltage;

    @ApiModelProperty("电流")
    private BigDecimal current;

    @ApiModelProperty("功率")
    private BigDecimal activePower;

    @ApiModelProperty("空开状态（1：开，0：关）")
    @TableField(exist = false)
    private Integer gateState = 0;

    @ApiModelProperty("开关状态（1：开，0：关）")
    @TableField(exist = false)
    private JSONObject smartState;

}
